package IO;

import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;
//按照字符写入
public class Demo10 {
    public static void main(String[] args) {
        try(Writer writer = new FileWriter("./text.txt")) {
            writer.write("tjc");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
